package net.uman.framework.modules.search;

import java.io.IOException;
import java.util.List;

import net.uman.entity.IdEntity;

public interface Search {

	public void createIndex(String table, String id, FieldDesc[] flds) throws IOException;

	public void deleteIndex(IdEntity obj) throws IOException;

	public void deleteIndex(String table, String id) throws IOException;
	
	public void deleteIndex(String table, Criteria criteria) throws IOException;

	public List<List<FieldDesc>> queryDate(String table, Criteria criteria) throws IOException;

	public void closeIndex() throws IOException;
	
	public void clear(String table);

}